<%@ page pageEncoding='UTF-8'%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:set var="contextPath" value="#request.get('javax.servlet.forward.context_path')" scope="request" />

<div id="drugstock-menu-container" class="menu-container">
	<h1 class="fg-orange place-left">
		<i class="icon-file no-print"></i>      
		Drug Stock
		<small class="on-left-more ${(mode == 'registration' || mode == 'list') ? 'opt1-4' : ''} no-print">
			<s:if test="%{#mode == 'details' || #mode == 'registration' || #mode == 'list'}">
				details
			</s:if>
			<s:else>
				<a href="${contextPath}/drugstock/show?id=${guiDrugStock.drugStockId}">details</a>
			</s:else>
		</small>
		<small class="on-left-more ${(mode == 'registration' || mode == 'list') ? 'opt1-4' : ''} no-print">
			<s:if test="%{#mode == 'edit' || #mode == 'registration' || #mode == 'list'}">
				edit
			</s:if>
			<s:else>
				<a href="${contextPath}/drugstock/edit?id=${guiDrugStock.drugStockId}">edit</a>
			</s:else>
		</small>
		<small class="on-left-more no-print">
			<s:if test="%{#mode == 'registration'}">
				registration
			</s:if>
			<s:else>
				<a href="${contextPath}/drugstock/registration">registration</a>
			</s:else>
		</small>
		<small class="on-left-more no-print">
			<s:if test="%{#mode == 'list'}">
				list
			</s:if>
			<s:else>
				<a href="${contextPath}/drugstock/list">list</a>
			</s:else>
		</small>
	</h1>
	
    <h1 class="place-right no-print">
        <small class="on-left-more">
        	<s:if test="%{#mode == 'details'}">
				<a id="btn-delete" href="${contextPath}/drugstock/delete?id=${guiDrugStock.drugStockId}">
                	delete <i class="icon-remove on-right smaller"></i>
            	</a>               
			</s:if>
        </small>
    </h1>
    <br clear="all"/>
</div>